import java.util.HashSet;
import java.util.Random;

public class Demo {
    public static void main(String[] args) {
        Random r = new Random();
        HashSet<Integer> ts = new HashSet<Integer>();
        while(ts.size() < 10){
            int num = r.nextInt(40)+1;
            ts.add(num);
        }
        System.out.println("----------------------");
        for(Integer i : ts){
            System.out.println(i);
        }
    }
}


